package com.taa.domain.trade.service.product.impl;

import com.taa.domain.trade.adapter.repository.ITradeRepository;
import com.taa.domain.trade.model.entity.ProductEntity;
import com.taa.domain.trade.service.product.IProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: taa
 * @Desc: 商品服务实现类
 * @Create: 2025-06-02 16:14
 **/
@Service
public class ProductService implements IProductService {

    @Resource
    private ITradeRepository repository;

    @Override
    public List<ProductEntity> listProducts() {
        return repository.listProducts();
    }
}

